﻿using System;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

namespace ASPNETVN.PORTAL.Components.Share
{
    public partial class CategoryFunction
    {
        public static DataSet SelectBy_ModuleDefinitionID(Guid moduleDefinitionID)
        {
            string spName = "p_SHARE_CategoryFunction_SelectBy_ModuleDefinitionID";
            SqlDatabase db = (SqlDatabase)DatabaseFactory.CreateDatabase();
            SqlCommand dbCommand = (SqlCommand)db.GetStoredProcCommand(spName);
            db.AddInParameter(dbCommand, "@ModuleDefinitionID", SqlDbType.UniqueIdentifier, moduleDefinitionID);
            return db.ExecuteDataSet(dbCommand);
        }
    }
}
